<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */

$db['merchant']=array (
  'columns' =>
  array (
    'id' =>
    array (
      'type' => 'int unsigned',
      'required' => true,
      'pkey' => true,
      'extra' => 'auto_increment',
      'label' => app::get('tbdata')->_('商家自增id'),
      'width' => 110,
      'editable' => false,
	  'order'=>1,
      'in_list' => false,
    ),
    'name' =>
    array (
      'type' => 'varchar(300)',
      'default' => '',
      'label' => app::get('tbdata')->_('商家名称'),
      'width' => 50,
      'editable' => false,
      'in_list' => true,
	  'order'=>1,
      'default_in_list' => true,
    ),
    'code' =>
    array (
      'type' => 'varchar(300)',
      'default' => '',
      'label' => app::get('tbdata')->_('商家编码'),
      'width' => 50,
      'editable' => false,
      'in_list' => true,
	  'order'=>1,
      'default_in_list' => true,
    ),
    'logo' =>
    array (
      'type' => 'varchar(32)',
      'default' => '',
      'label' => app::get('tbdata')->_('商家网站logo'),
      'width' => 50,
      'editable' => false,
      'in_list' => true,
	  'order'=>1,
      'default_in_list' => true,
	  'filtertype'=>'number',
      'filterdefault' => true,
    ),
    'site' =>
    array (
      'type' => 'varchar(500)',
      'default' => '',
      'label' => app::get('tbdata')->_('商家网站链接'),
      'width' => 50,
      'editable' => false,
      'in_list' => true,
	  'order'=>1,
      'default_in_list' => true,
	  'filtertype'=>'number',
      'filterdefault' => true,
    ),
    'last_modify' =>
    array (
      'type' => 'last_modify',
      'label' => app::get('tbdata')->_('更新时间'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
	  'default'=>0,
      'filtertype' => 'yes',
      'filterdefault' => true,
      'default_in_list' => true,
    ),
  ),
  'comment' => app::get('tbdata')->_('商家'),
  'index' =>
  array (
    'ind_name' =>
    array (
      'columns' =>
      array (
        0 => 'name',
      ),
    ),
    'ind_code' =>
    array (
      'columns' =>
      array (
        0 => 'code',
      ),
    )
  ),
  'version' => '$Rev: 41329 $',
);
